﻿using System;
using System.Collections.Generic;
using System.Text;
using SQLBuilder.Core;

namespace LView.CMS.Models
{
    [Table("LMSASSETS")]
    public class Assets
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SQLBuilder.Core.Key("ID")]
        public string Id { get; set; }

        /// <summary>
        /// 资源名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        public string TypeId { get; set; }

        /// <summary>
        /// 上级目录
        /// </summary>
        public string Directory { get; set; }

        /// <summary>
        /// 文件名称
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 资源封面地址（缩略图）
        /// </summary>
        public string CoverImage { get; set; }

        /// <summary>
        /// 文件大小（byte）
        /// </summary>
        public decimal? FileSize { get; set; }

        /// <summary>
        /// 播放时长（单位秒）
        /// </summary>
        public decimal? PlaySize { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        public int? Sort { get; set; }
    }
}
